package com.ccloud.api.motorfactory.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccloud.api.motorfactory.domain.MPartType;
import com.ccloud.api.motorfactory.mapper.MPartTypeMapper;
import com.ccloud.api.motorfactory.service.IMPartTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 货品类型表 服务实现类
 * </p>
 *
 * @author chentl
 * @since 2022-04-09
 */
@Service
public class MPartTypeServiceImpl extends ServiceImpl<MPartTypeMapper, MPartType> implements IMPartTypeService {

    @Override
    public IPage<MPartType> selectPage(Page<MPartType> page, MPartType partType) {
        return baseMapper.selectPage(page, partType);
    }

    @Override
    public Integer maxVal() {
        return baseMapper.maxVal();
    }

    @Override
    public List<MPartType> getMap() {
        return baseMapper.getMap();
    }
}
